package com.cmpe451.nutty.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "INGREDIENTS")
public class Ingredients extends BaseModel {
	private static final long serialVersionUID = 1L;

	@Column(name = "NAME")
	private String name;

	@Column(name = "CALORY", nullable = false)
	private double calory;
	
	@Column(name = "PROTEIN", nullable = false)
	private double protein;

	@Column(name = "FAT", nullable = false)
	private double fat;

	@Column(name = "CARBS", nullable = false)
	private double carbs;
	
	@Column(name="INGREDIENT_DESCRIPTION")
	private String ingredientDescription;

	//JOIN YAP!!
	
	//@ManyToMany
	//@JoinTable(name = "APP_USER_ROLE", joinColumns = { @JoinColumn(name = "APP_USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "APP_ROLE_NAME") })
	//private Set<Role> roles = new HashSet<Role>();

	public String getIngredientDescription() {
		return ingredientDescription;
	}

	public void setIngredientDescription(String ingredientDescription) {
		this.ingredientDescription = ingredientDescription;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public double getProtein() {
		return protein;		
	}

	public void setProtein(double protein) {
		this.protein = protein;
	}

	public double getCalory() {
		return calory;
	}

	public void setCalory(double calory) {
		this.calory = calory;
	}

	public double getFat() {
		return fat;
	}

	public void setFat(double fat) {
		this.fat = fat;
	}
	
	public double getCarbs() {
		return carbs;
	}

	public void setCarbs(double carbs) {
		this.carbs = carbs;
	}
}
